package com.hellobike.haxing.modules.order.service;

import com.hellobike.haxing.modules.order.entity.OrderCoupon;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @Description: 订单优惠券
 * @Author: haxing-boot
 * @Date:   2020-02-08
 * @Version: V1.0
 */
public interface IOrderCouponService extends IService<OrderCoupon> {
    /**
     * 查询订单使用优惠券
     * @param orderId
     * @return
     */
    List<OrderCoupon> queryList(Long orderId);

    /**
     * 退还优惠券
     * @param orderId
     */
    void returnCoupon(Long orderId);
}
